#ifndef EDITOR_OBJECT_WIDGET_H
#define EDITOR_OBJECT_WIDGET_H

#include <ne.h>
#include <QtGui>

class MainWindow;

class EditorObjectWidget : public QDockWidget
{
    Q_OBJECT

    public:
        EditorObjectWidget(MainWindow *parent=0, Qt::WindowFlags flags=0);

        virtual ~EditorObjectWidget();

        void setModel(const ne::ModelPtr &pModel);

        ne::ModelPtr getModel() const;

        void updateTreeWidget();

        void clearTreeWidget();

    private:
        MainWindow *mpMainWindow;
        QWidget *mpContents;
        QVBoxLayout *mpLayout;
        QTreeWidget *mpTreeWidget;

        ne::ModelPtr mpModel;
};

#endif
